package com.gj.costprice.EnumPackage;

/**
 * Created by Administrator on 2021-06-24.
 */
public enum StatusEnum {
    j(0,"禁用"),q(1,"启用");
    private Integer status;
    private String statusName;

    public String getStatusName() {
        return statusName;
    }
    public Integer getStatus() {
        return status;
    }

    StatusEnum(Integer status, String statusName) {
        this.status = status;
        this.statusName = statusName;
    }

    public static String getStatusName(Integer status){
        for (StatusEnum c: StatusEnum.values()) {
            if(c.getStatus()==status)
                return c.getStatusName();
        }
        return  null;
    }


}
